package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 * Created by sss on 2016/8/11.
 */
public enum RodimusSysExceptionEnum implements DefaultSysExceptionInterface{
    /****RODIMUS**********RODIMUS********************RODIMUS**********RODIMUS****/
    SALESMAN_NOT_EXIT(1601,"分销员不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MOBILE_EXIT(1602,"手机已经存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    REPEAT_OPENID(1603,"微信会员重复",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SALESMANMEMBER_NOT_EXIT(1604,"分销员关联会员不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MEMBERPOINT_NOT_ENOUGH(1605,"会员积分不足",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SYNC_SALESMAN_AWARD_ERROR(1606,"分销员奖励同步异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    TIME_OUT(1102,"AUTHENTICATION_TIME_OUT", BaseConstant.SysExceptionConstant.BIZ_TYPE.SHIRO),
    AUTHENTICATION_ERRO(1106,"AUTHENTICATION_ERRO:参数被篡改", BaseConstant.SysExceptionConstant.BIZ_TYPE.SHIRO),
    LONGIN_ERRO(1110,"登录异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    AWARD_ERROR(1111,"奖励方法错误:异常单号:", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    DRAW_ERROR(1112,"抽奖错误:", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    COUPON_ERROR(1113,"coupon_error:", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    EXPRESS_ERROR(1114,"EXPRESS_ERROR", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SALES_MAN_QRCODE_NOT_EXIT(1115,"分销员二维码不存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    POINT_RULE_NOT_EXIT(1116,"积分使用规则未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MEMBER_IS_NOE_EXIT(1117,"会员不存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    INVOICE_TITLE_TYPE_MISS(1118,"发票抬头类型缺失", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_ORDER_CANCEL_ERROR(1119,"商城订单取消错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    DRAW_PRIZE_UPDATE_ERROR(1120,"抽奖奖项修改出错.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CATEGORY_CREATE_EROOR(1121,"新建商品类目错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CATEGORY_UPDATE_EROOR(1122,"修改商品类目错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_UPDATE_EROOR(1123,"修改商品错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CREATE_EROOR(1124,"新建商品错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),

    MALL_GOOD_PRICE_CREATE_EROOR(1125,"新建商品价格.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_PRICE_UPDATE_EROOR(1126,"更新商品价格.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_PRICE_DELETE_EROOR(1127,"删除商品价格.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GROUP_BUYING_LIST_EROOR(1128,"团购列表错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GROUP_BUYING_CREATE_EROOR(1129,"创建团购活动错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    CREATE_GROUP_BUYING_TEAM_ERROR(1130,"团购下单异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GENERATE_NEW_ORDERNO_ERROR(1131,"商城单号生产错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GENERATE_TEAMNO_ERROR(1132,"团购团队流水号产生错误.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    TEAMAUTO_CANCEL_ERROR(1133,"团队自动取消异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    JOIN_THE_TEAM_ERROR(1134,"参加团购异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MANUAL_UPDATE_TEAM_ERROR(1135,"修改团队异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GROUP_BUYING_UPDATE_EROOR(1136,"团购活动修改异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MANUAL_REFUND_EROOR(1137,"人工退款异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    REDO_DRAW_AFTER_DO_ERROR(1138,"抽奖后奖励方法补偿异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SALESMAN_SOURCE_LEADIN_ERROR(1139,"分销员导入异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    FIND_SALESMAN_BY_SALESMAN_NO_ERROR(1140,"分销员工号映射查询异常.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_ERROR(1141,"签到异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_CALENDAR(1142,"", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_REISSUE(1143,"补签异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_DISTRIBUTE_AWARD(1144,"签到奖励分发异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    GET_UNDERWAY_SIGN_BASE_ERROR(1146,"获得当前生效签到活动异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_DRAW_AWARD(1147,"签到领奖",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_REISSUE_RULE(1148,"补签次数规则",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_RULE_BASE_CREATE_ERROR(1149,"签到规则创建异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    SIGN_IN_RULE_BASE_MODIFY_ERROR(1150,"补签规则修改异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MEMBER_SYNC(1151,"会员同步",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_PAYMENT_NOTITY(1152,"商城支付入账通知异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MEMBER_LEVEL_UPGRADE(1153,"会员升级异常",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MODIFY_MEMBER_NAME_IS_NOT_MEMBER(1154,"您还不是会员,请先注册",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MODIFY_MEMBER_MEMBER_NOT_EXIT(1155,"会员不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MODIFY_MEMBER_MEMBER_NO_NOT_EXIT(1156,"会员号不存在",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MODIFY_MEMBER_MEMBER_PARAM_INVALID(1157,"请输入姓名.",BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CREATE_EROOR_duplicate(1158,"商品代码重复.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CREATE_EROOR_name_duplicate(1159,"商品名称重复.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),
    MALL_GOOD_CREATE_EROOR_Category_NOT_EXIT(1159,"商品类目不存在.", BaseConstant.SysExceptionConstant.BIZ_TYPE.RODIMUS),

    ;

    private RodimusSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
